#ifndef BUTTON_H_
#define BUTTON_H_

#include <iostream>
#include "SDL/SDL_ttf.h"
#include "../../common/Constantes.h"
#include "listeners/Listener.h"
#include "../../common/utils/Logger.h"
#include "../Parcel.h"
#include "../Event.h"
#include "../WidgetClickeableWithText.h"

class Button: public WidgetClickeableWithText {

public:
	Button (std::string buttonName, std::string path, int posX, int posY, Widget* parent, Listener * listener);
	Button (std::string buttonName, Color color,int w, int h, int posX, int posY, Widget* parent, Listener * listener);

	virtual void handleEvent(Event event);
	virtual void resolve();

	virtual ~Button();

private:
	Listener* listener;

};

#endif /* BUTTON_H_ */
